from api.login import LoginApi


def get_headers(mobile="13800000002", password="123456"):
    body_login = {"mobile": mobile, "password": password}
    data = LoginApi.login(body_login)
    token = "Bearer " + data.json().get("data")
    headers = {"Content-Type": "application/json", "Authorization": token}
    return headers


if __name__ == '__main__':
    data = get_headers("18800000002", "9r9r8re8r8r")
    print(data)